﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02.ReadNumberInDiapazon
{
    class readNumberInDiapazon
    {
        //Write a method ReadNumber(int start, int end)
        //that enters an integer number in given range [start…end]. 
        //If an invalid number or non-number text is entered, the method should throw an exception. 
        //Using this method write a program that enters 10 numbers:
        //a1, a2, … a10, such that 1 < a1 < … < a10 < 100

        static void Main(string[] args)
        {
        }
        public void ReadNumber(int start, int end)
        {
            Console.WriteLine("Insert number in the range [{0}...{1}]",start,end);
            try
            {
                int number = int.Parse(Console.ReadLine());

            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}
